package finaldemo;

public class demo2 extends B {
    @Override
    public void print() {
        System.out.println("B");
    }
    public void print(int a){
        System.out.println(a);
    }
}

class B {
    public void print() {
        System.out.println("A");
    }
}
